package com.rerun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 用户表
 * </p>
 *
 * @author GaoJun.Zhou
 * @since 2017 -03-06
 */
@TableName("sys_user")
public class SysUser extends Model<SysUser>{
    private static final long serialVersionUID = 1133840779759984879L;

    /**
     * The constant _0.
     */
    public static final int _0 = 0;
    /**
     * The constant _1.
     */
    public static final int _1 = 1;

    /**
     * 主键
     */
    @TableId(type=IdType.UUID)
    private String id;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 密码
     */
    private String password;
    /**
     * 用户状态,1-启用,-1禁用
     */
    private Integer userState;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 描述
     */
    private String userDesc;
    /**
     * 头像
     */
    private String userImg;
    /**
     * 部门主键
     */
    private String deptId;
    /**
     * 公司/院校主键
     */
    private String companyId;

    /**
     * Gets id.
     *
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Gets user name.
     *
     * @return the user name
     */
    public String getUserName() {
        return userName;
    }

    /**
     * Sets user name.
     *
     * @param userName the user name
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * Gets password.
     *
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * Sets password.
     *
     * @param password the password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * Gets user state.
     *
     * @return the user state
     */
    public Integer getUserState() {
        return userState;
    }

    /**
     * Sets user state.
     *
     * @param userState the user state
     */
    public void setUserState(Integer userState) {
        this.userState = userState;
    }

    /**
     * Gets create time.
     *
     * @return the create time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * Sets create time.
     *
     * @param createTime the create time
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * Gets user desc.
     *
     * @return the user desc
     */
    public String getUserDesc() {
        return userDesc;
    }

    /**
     * Sets user desc.
     *
     * @param userDesc the user desc
     */
    public void setUserDesc(String userDesc) {
        this.userDesc = userDesc;
    }

    /**
     * Gets user img.
     *
     * @return the user img
     */
    public String getUserImg() {
        return userImg;
    }

    /**
     * Sets user img.
     *
     * @param userImg the user img
     */
    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    /**
     * Gets dept id.
     *
     * @return the dept id
     */
    public String getDeptId() {
        return deptId;
    }

    /**
     * Sets dept id.
     *
     * @param deptId the dept id
     */
    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    /**
     * Gets company id.
     *
     * @return the company id
     */
    public String getCompanyId() {
        return companyId;
    }

    /**
     * Sets company id.
     *
     * @param companyId the company id
     */
    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

}
